package org.chen.flight.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.chen.common.flight.OneWayFlightData;

/**
 * 单程航班数据Mapper
 */
@Mapper
public interface OneWayFlightDataMapper extends BaseMapper<OneWayFlightData> {
    
    /**
     * 检查数据指纹是否存在
     */
    @Select("SELECT COUNT(1) FROM flight_oneway_flight_data WHERE data_fingerprint = #{dataFingerprint}")
    int existsByDataFingerprint(@Param("dataFingerprint") String dataFingerprint);
}